<?php
namespace Admin\Controller;

use Common\Controller\AdminbaseController;

class FeedbackController extends AdminbaseController{
    
	protected $Feedback_model;
	
	public function _initialize() {
		parent::_initialize();
		$this->Feedback_model = D("Common/Feedback");
	}
	
	// 后台反馈列表
	public function index(){
		$Feedbacks=$this->Feedback_model->select();
		$this->assign("feedbacks",$Feedbacks);
		$this->display();
	}
	// 反馈删除
	public function delete(){
		$id = I("get.id",0,"intval");
		if ($this->Feedback_model->delete($id)!==false) {
			$this->success("删除成功！");
		} else {
			$this->error("删除失败！");
		}
	}

	
}